﻿<div class="container-fluid navbar-fixed-top top-bar">
    <div class="container-title">
        <div class="container-title-back" ng-click="back()"></div>
        <div class="container-title-main">新闻资讯</div>
        <div class="container-title-search"></div>
    </div>
</div>
<div class="clear88"></div>
<div class="xx_bg"></div>
<div class="nav-class new-fixtop">
    <div class="container-fluid">
        <div class="table">
            <div class="table_a">
                <div class="swiper-container">
                    <div class="swiper-wrapper">
                        <div class="swiper-slide" ng-repeat="type in newstype" id="type{{$index}}" repeat-done="Done()" ng-model="swiper"><a>{{type.NAME}}</a></div>
                        <!--ng-click="gettypenews(type.ID)"-->
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<div class="mb"></div>
<div class="over-box">
    <div class="nav-class">
        <div class="nav-class-lf">
            <div class="container-fluid">
                <div class="row">
                    <div class="col-lg-8 col-md-8 col-xs-8 col-sm-8">
                        <input class="form-control" placeholder="请输入新闻名称" ng-model="name">
                    </div>
                    <div class="col-lg-4 col-md-4 col-xs-4 col-sm-4"><a class="btn btn-default focus" ng-click="find()">搜索</a></div>
                </div>
            </div>
        </div>
    </div>
</div>
<div class="new_list_sw">
    <div class="swiper-container">
        <div class="swiper-wrapper">
            <div class="swiper-slide" ng-repeat="newsone in newsall" id="page{{$index}}" repeat-done="Done2()">
                <!--大图滚动位置-->
                <div class="index-news-banner embed-responsive" style="padding-bottom:40%;">
                    <div class="swiper-containerx">
                        <div class="swiper-wrapper">
                            <div class="swiper-slide" ng-repeat="img in newsone.newsbiglist">
                                <img ng-src="{{img.T_NEWS.SHOW_TITLE}}" ng-click="detail(img.T_NEWS.ID)">
                            </div>
                        </div>
                        <div class="swiper-paginationx"></div>
                    </div>
                    <script>
                        var index_news = new Swiper('.index-news-banner .swiper-containerx', {
                            pagination: '.swiper-paginationx',
                            observer: true,
                        });
                    </script>
                </div>
                <!--end 大图滚动位置-->

                <!--正文信息-->
                <div id="div_data{{$index}}" openxtonscrolldown="f_showdata3({{$index}});">
                    <!--<div class="clear10"></div>-->
                    <div ng-repeat="sin in newsone.newslist">
                        <a ng-click="detail(sin.T_NEWS.ID)">
                            <div class="new_border">
                                <div class="container-fluid">
                                    <div class="clear10"></div>
                                    <div ng-class="{true:'col-lg-5 col-md-5 col-sm-5 col-xs-5',false:''}[{{sin.isimg}}]">
                                        <img ng-src={{sin.T_NEWS.SHOW_TITLE}}>
                                    </div>
                                    <div ng-class="{true:'col-lg-7 col-md-7 col-sm-7 col-xs-7',false:'newsclass'}[{{sin.isimg}}]">
                                        <h1>{{sin.T_NEWS.TITLE}}</h1>
                                        <p>{{sin.T_NEWS.ARTICLE_DT|datenormal}}</p>
                                    </div>
                                    <div class="clear10"></div>
                                </div>
                            </div>
                        </a>
                    </div>
                </div>
                <!--end 正文信息-->

            </div>
        </div>
    </div>
</div>
<div class="clear50"></div>
<!--<div class="clear50"></div>-->
<script>
    var new_Swiper = new Swiper('.table .swiper-container', {
        slidesPerView: 4,
        observer: true
    });
    var new_list = new Swiper('.new_list_sw .swiper-container', {
        observer: true,
        onSlideChangeStart: function (swiper) {
            //$('html, body').animate({ scrollTop: 0 });
            //window.scrollTo(0, 0)
            $(".table_a a.active").removeClass("active");
            var eq_num = swiper.activeIndex;
            new_Swiper.slideTo(eq_num);
            window.localStorage.setItem("typepage", eq_num);
            window.localStorage.setItem("title", "");
            window.localStorage.setItem("page", 1);
            $(".table_a .swiper-slide:eq(" + eq_num + ") a").addClass("active");
        }
    });
</script>